package edu.hunau.cxb18.dao.impl;

import edu.hunau.cxb18.dao.UserDao;
import edu.hunau.cxb18.pojo.User;

import java.util.ArrayList;
import java.util.List;

/**
 * @author hb
 * @create 2020-02-20 11:39
 */
public class UserDaoImpl implements UserDao {

    @Override
    public List<User> queryAll() {
        //模拟从数据库中获得数据
        List<User> users=new ArrayList<>();
        users.add(new User(1001,"haoren"));
        users.add(new User(1002,"lucy"));
        users.add(new User(1003,"jerry"));
        return users;
    }
}
